<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style type="text/css">
			td{
				width: 50px;
			}
		</style>
	</head>
	<body>
		<!--<table >
			<tr>
				<td >编号</td>
				<td>姓名</td>
				<td>年龄</td>
			</tr>
			<tr>
				<td>1</td>
				<td>张三</td>
				<td>20</td>
			</tr>
			<tr>
				<td>2</td>
				<td>李四</td>
				<td>21</td>
			</tr>
		</table>-->
		<script type="text/javascript">
			//作业一  （1）
			alert("大家好：");
			alert("我是张倩");
			//（2）
			document.write("<table >");
			document.write("<tr>");
			document.write("	<td >编号</td>");
			document.write("<td>姓名</td>");
			document.write("<td>年龄</td>");
			document.write("</tr>");
			document.write("<tr>");
			document.write("<td>1</td>");
			document.write("<td>张三</td>");
			document.write("<td>21</td>");
			document.write("</tr>");
			document.write("<tr>");
			document.write("<td>2</td>");
			document.write("<td>李四</td>");
			document.write("<td>20</td>");
			document.write("</tr>");
			//（3）
			var name = "张倩", place = "河北", age = "24";
			console.log("我是"+name,"我是"+place+"人","我今年"+age+"岁");
			//作业三 （2）
			var age1 = "20",name1 = "张三",height = "180cm",str = "今天没有下雨";
			console.log("年龄："+ age1,"姓名：" + name1,"身高：" + height,str);
			//（3）
			var length = "120",width = "50";
			var area = length * width;
			console.log(area + "平方厘米");
			
			var r = 1.5;
			var area1 = 3.14 * r * r;
			var d = 3.14 * 2 * r;
			console.log(area1);
			console.log(d);
			
			var name2 = "张三", age2 = "20";
			console.log("你好，我叫" + name2 + "," + "今年" + age2 +"岁。")
			//（4）
			var x = 10, y = 20;
			var c;
			var c = x;
			var x = y;
			var y = c;
			console.log("x：" + x);
			console.log("y：" + y);
			//作业四（1）
			var day = 50;
			var week = day / 7;
			console.log(week);
			//（2）
			var a = 2, b = 8;
			var a = a + b;
			var b = a - b;
			var a = a - b;
			console.log(a);
			console.log(b);
			
		</script>
	</body>
</html>
